package com.lqzs.businessmanager.http

import com.lqzs.businessmanager.base.HttpResult
import com.lqzs.businessmanager.bean.request.AddReviewInfoRequest
import com.lqzs.businessmanager.bean.request.EleAddReviewRequest
import com.lqzs.businessmanager.bean.request.GetUnReplyReviewsRequest
import com.lqzs.businessmanager.bean.request.LatestReViewRequest
import com.lqzs.businessmanager.bean.request.LoginShopRequest
import com.lqzs.businessmanager.bean.request.MerChantAddReviewInfoRequest
import com.lqzs.businessmanager.bean.request.UpdateOrderInfo
import com.lqzs.businessmanager.bean.request.UpdateReviewStateRequest
import com.lqzs.businessmanager.bean.response.GetUnReplyReviewsResponse
import com.lqzs.businessmanager.bean.response.LatestReViewResponse
import com.lqzs.businessmanager.bean.response.LoginShopResponse
import com.lqzs.businessmanager.bean.response.PlatfromResponse
import com.lqzs.businessmanager.bean.response.ReviewInfoResponse
import com.lqzs.businessmanager.bean.response.ReviewStateResponse
import com.lqzs.businessmanager.bean.response.VenDorResponse
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface RetrofitService {

    /**
     * 查询所有商家信息
     */
    @GET("getVenDorList")
    suspend fun getVenDorList(): Response<HttpResult<List<VenDorResponse>>>
    /**
     * 查询所有平台信息
     */
    @GET("getPlatfromList")
    suspend fun getPlatfromList(): Response<HttpResult<List<PlatfromResponse>>>

    /**
     * 美团大众点评上传评论信息
     */
    @POST("add_merChant_review_info")
    suspend fun addReviewMerChantInfo(@Body request: MerChantAddReviewInfoRequest): Response<HttpResult<ReviewInfoResponse>>

    /**
     * 饿了么上传评论信息
     */
    @POST("add_napos_review_info")
    suspend fun addReviewNaposInfo(@Body request: EleAddReviewRequest): Response<HttpResult<ReviewInfoResponse>>

    /**
     * 上传评论信息
     */
    @POST("add_review_info")
    suspend fun addReviewInfo(@Body request: AddReviewInfoRequest): Response<HttpResult<ReviewInfoResponse>>
    /**
     * 绑定商铺账号
     */
    @POST("binding")
    suspend fun loginShop(@Body request: LoginShopRequest): Response<HttpResult<List<LoginShopResponse>>>

    /**
     * 更新订单状态
     */
    @POST("update_order_info")
    suspend fun updateOrderInfo(@Body request: UpdateOrderInfo):Response<HttpResult<ReviewStateResponse>>
    /**
     * 获取最新的已回复的信息
     */
    @POST("get_latest_review")
    suspend fun getLatestReView(@Body request: LatestReViewRequest): Response<HttpResult<LatestReViewResponse>>

    /**
     * 更新评论的状态
     */
    @POST("update_review_state")
    suspend fun updateReviewState(@Body request: UpdateReviewStateRequest): Response<HttpResult<ReviewStateResponse>>

    /**
     * 更新评论状态
     */
    @POST("update_reply_info")
    suspend fun updateReviewInfo(@Body request: AddReviewInfoRequest):Response<HttpResult<ReviewInfoResponse>>


    /**
     * 更新评论状态
     */
    @POST("get_unreply_reviews")
    suspend fun getUnReplyReviews(@Body request: GetUnReplyReviewsRequest):Response<HttpResult<List<GetUnReplyReviewsResponse>>>

}